#include "fileinfocontent.h"

FileInfoContent::FileInfoContent(QWidget *parent)
    : QWidget{parent}
{

}
void FileInfoContent::mousePressEvent(QMouseEvent* event){
    if(event->button()==Qt::LeftButton){
        emit fileClicked();
    }
}
void FileInfoContent::paintEvent(QPaintEvent *event){
    QStyleOption opt;
    opt.init(this);
    QPainter p(this);
    style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}
